<?php
/**
 * AD main configuration
 *
 * This file is where all the primary configuration
 * settings are stored. All items are clearly labeled.
 * @package Configuration
 */

/**
 * Enable/disable error reporting.
 * Set to -1 to enable, 0 to disable.
 */
error_reporting(0);

/**
 * Set script timeout to 10 minutes.
 */
set_time_limit(60 * 60 * 10);

/**
 * Set level of logging. Available values are:
 * DEBUG, INFO, WARN, ERROR, and FATAL
 */
define('AD_LOGGING_LEVEL', 'INFO');

/**
 * Set the key that cookies are encrypted with.
 */
define('AD_SECRET_KEY', 'Please change this entry to a super secret combination of your choice....');

/**
 * Set how many days to keep logs.
 */
define('AD_DAYS_TO_KEEP_LOG', 7);

/**
 * Set how many login attempts are allowed until user is locked out.
 */
define('AD_TRIES_TO_LOCKOUT', 5);

/**
 * Set if MISMO XML output is validated.
 */
define('AD_VALIDATE_MISMO_XML', TRUE);

/**
 * Set if RETS debug mode is enabled.
 */
define('AD_RETS_DEBUG_MODE', FALSE);

/**
 * Set the Access Control Log path.
 */
define('AD_ACCESS_FOLDER', AD_SERVER_PATH . '/writable/acl/');

/**
 * Set the cookie path.
 */
define('AD_COOKIE_FOLDER', AD_SERVER_PATH . '/writable/cookie/');

/**
 * Set the state path where the user files are stored.
 */
define('AD_USER_DATA_FOLDER', AD_SERVER_PATH . '/writable/user_data/');

/**
 * Set the logging path.
 */
define('AD_DEBUG_FOLDER',  AD_SERVER_PATH . '/writable/log/');

/**
 * Set the temporary storage path.
 */
define('AD_TEMP_FOLDER',  AD_SERVER_PATH . '/writable/temp/');

/**
 * Set the too many failed login attempts error message.
 */
define ('ERR_ABUSIVE_LOGIN', 'Too many failed login attempts, your account has been banned for today.');

/**
 * Set the invalid login error message.
 */
define ('ERR_INVALID_LOGIN', 'Please verify user name/password and try again');

/**
 * Set the banned account error message.
 */
define ('ERR_BANNED_USER', 'Your account has been banned, please contact your RETS provider.');

/**
 * Set the missing writable folder message.
 */
define ('ERR_FOLDER_CREATE', 'Temporary folder could not be created. Please grant permission for the web server to create the folder:----> ');
